import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '广告名称',
    align: "center",
    dataIndex: 'adName'
  },
  {
    title: '广告图片',
    align: "center",
    dataIndex: 'adImage',
    customRender: render.renderImage,
  },
  {
    title: '发布状态',
    align: "center",
    dataIndex: 'publishStatus_dictText'
  },
  {
    title: '排序',
    align: "center",
    dataIndex: 'sortNo'
  },
  {
    title: '创建日期',
    align: "center",
    dataIndex: 'createTime'
  },
];

// 高级查询数据
export const superQuerySchema = {
  adName: {title: '广告名称',order: 0,view: 'text', type: 'string',},
  adImage: {title: '广告图片',order: 1,view: 'image', type: 'string',},
  publishStatus: {title: '发布状态',order: 2,view: 'list', type: 'string',dictCode: 'publish_status',},
  sortNo: {title: '排序',order: 3,view: 'number', type: 'number',},
  createTime: {title: '创建日期',order: 4,view: 'datetime', type: 'string',},
};
